<?php
// 中间件配置
return [
    // 别名或分组
    'alias'    => [
        'throttle' => \think\middleware\Throttle::class,
        'cors' => \sheep\middleware\Cors::class,
        'check_login' => \sheep\middleware\CheckLogin::class,
        'check_rule' => \sheep\middleware\CheckRule::class,
        'response_header' => \sheep\middleware\ResponseHeader::class,
        'custom_sign' => \sheep\middleware\CustomSign::class,
    ],
    // 优先级设置，此数组中的中间件会按照数组中的顺序优先执行
    'priority' => [
        'cors',
        'throttle',
        'check_login',
        'response_header',
        'check_rule'
    ],
];
